package com.du.spring5.bean;

import org.springframework.stereotype.Component;

/**
 * @author : DuJiabao
 * @Date : 2021/2/3 22:58
 * @Project : spring
 * @File : null.java
 * @Desc :
 */
@Component(value="dptm")
public class Department {
    private String name="dptm";

    public Department() {
    }

    public Department(String name) {
        this.name = name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Department{" +
                "name='" + name + '\'' +
                '}';
    }
}
